$('#modifyForm').on('submit',function(){
    var data = $(this).serialize()
    $.ajax({
        type:'put',
        url:'/users/password',
        data:data,
        success:function(){
            location.href = './login.html'
        }
    })
    return false;//阻止表单提交默认行为
})